var app = getApp()
Page({
  data: {
    recommends: [],
    loading: true
  },
  onLoad: function () {
    app.fetchApi("https://cake.cindata.cn/product/appQueryAllproduct", (err, data) => {
      this.setData({ recommends: data, loading: false })
    })
  }
})